package com.ruoyi.manage.db.model;

import java.util.ArrayList;
import java.util.List;

public class SbaBackgroundVideosExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SbaBackgroundVideosExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFileNumberIsNull() {
            addCriterion("file_number is null");
            return (Criteria) this;
        }

        public Criteria andFileNumberIsNotNull() {
            addCriterion("file_number is not null");
            return (Criteria) this;
        }

        public Criteria andFileNumberEqualTo(String value) {
            addCriterion("file_number =", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberNotEqualTo(String value) {
            addCriterion("file_number <>", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberGreaterThan(String value) {
            addCriterion("file_number >", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberGreaterThanOrEqualTo(String value) {
            addCriterion("file_number >=", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberLessThan(String value) {
            addCriterion("file_number <", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberLessThanOrEqualTo(String value) {
            addCriterion("file_number <=", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberLike(String value) {
            addCriterion("file_number like", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberNotLike(String value) {
            addCriterion("file_number not like", value, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberIn(List<String> values) {
            addCriterion("file_number in", values, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberNotIn(List<String> values) {
            addCriterion("file_number not in", values, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberBetween(String value1, String value2) {
            addCriterion("file_number between", value1, value2, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNumberNotBetween(String value1, String value2) {
            addCriterion("file_number not between", value1, value2, "fileNumber");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNull() {
            addCriterion("file_name is null");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNotNull() {
            addCriterion("file_name is not null");
            return (Criteria) this;
        }

        public Criteria andFileNameEqualTo(String value) {
            addCriterion("file_name =", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotEqualTo(String value) {
            addCriterion("file_name <>", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThan(String value) {
            addCriterion("file_name >", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThanOrEqualTo(String value) {
            addCriterion("file_name >=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThan(String value) {
            addCriterion("file_name <", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThanOrEqualTo(String value) {
            addCriterion("file_name <=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLike(String value) {
            addCriterion("file_name like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotLike(String value) {
            addCriterion("file_name not like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameIn(List<String> values) {
            addCriterion("file_name in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotIn(List<String> values) {
            addCriterion("file_name not in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameBetween(String value1, String value2) {
            addCriterion("file_name between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotBetween(String value1, String value2) {
            addCriterion("file_name not between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameIsNull() {
            addCriterion("display_name is null");
            return (Criteria) this;
        }

        public Criteria andDisplayNameIsNotNull() {
            addCriterion("display_name is not null");
            return (Criteria) this;
        }

        public Criteria andDisplayNameEqualTo(String value) {
            addCriterion("display_name =", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameNotEqualTo(String value) {
            addCriterion("display_name <>", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameGreaterThan(String value) {
            addCriterion("display_name >", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameGreaterThanOrEqualTo(String value) {
            addCriterion("display_name >=", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameLessThan(String value) {
            addCriterion("display_name <", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameLessThanOrEqualTo(String value) {
            addCriterion("display_name <=", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameLike(String value) {
            addCriterion("display_name like", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameNotLike(String value) {
            addCriterion("display_name not like", value, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameIn(List<String> values) {
            addCriterion("display_name in", values, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameNotIn(List<String> values) {
            addCriterion("display_name not in", values, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameBetween(String value1, String value2) {
            addCriterion("display_name between", value1, value2, "displayName");
            return (Criteria) this;
        }

        public Criteria andDisplayNameNotBetween(String value1, String value2) {
            addCriterion("display_name not between", value1, value2, "displayName");
            return (Criteria) this;
        }

        public Criteria andLinkIsNull() {
            addCriterion("link is null");
            return (Criteria) this;
        }

        public Criteria andLinkIsNotNull() {
            addCriterion("link is not null");
            return (Criteria) this;
        }

        public Criteria andLinkEqualTo(String value) {
            addCriterion("link =", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotEqualTo(String value) {
            addCriterion("link <>", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkGreaterThan(String value) {
            addCriterion("link >", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkGreaterThanOrEqualTo(String value) {
            addCriterion("link >=", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLessThan(String value) {
            addCriterion("link <", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLessThanOrEqualTo(String value) {
            addCriterion("link <=", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLike(String value) {
            addCriterion("link like", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotLike(String value) {
            addCriterion("link not like", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkIn(List<String> values) {
            addCriterion("link in", values, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotIn(List<String> values) {
            addCriterion("link not in", values, "link");
            return (Criteria) this;
        }

        public Criteria andLinkBetween(String value1, String value2) {
            addCriterion("link between", value1, value2, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotBetween(String value1, String value2) {
            addCriterion("link not between", value1, value2, "link");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryIsNull() {
            addCriterion("display_category is null");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryIsNotNull() {
            addCriterion("display_category is not null");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryEqualTo(String value) {
            addCriterion("display_category =", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryNotEqualTo(String value) {
            addCriterion("display_category <>", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryGreaterThan(String value) {
            addCriterion("display_category >", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("display_category >=", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryLessThan(String value) {
            addCriterion("display_category <", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryLessThanOrEqualTo(String value) {
            addCriterion("display_category <=", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryLike(String value) {
            addCriterion("display_category like", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryNotLike(String value) {
            addCriterion("display_category not like", value, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryIn(List<String> values) {
            addCriterion("display_category in", values, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryNotIn(List<String> values) {
            addCriterion("display_category not in", values, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryBetween(String value1, String value2) {
            addCriterion("display_category between", value1, value2, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andDisplayCategoryNotBetween(String value1, String value2) {
            addCriterion("display_category not between", value1, value2, "displayCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryIsNull() {
            addCriterion("video_category is null");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryIsNotNull() {
            addCriterion("video_category is not null");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryEqualTo(String value) {
            addCriterion("video_category =", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryNotEqualTo(String value) {
            addCriterion("video_category <>", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryGreaterThan(String value) {
            addCriterion("video_category >", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("video_category >=", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryLessThan(String value) {
            addCriterion("video_category <", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryLessThanOrEqualTo(String value) {
            addCriterion("video_category <=", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryLike(String value) {
            addCriterion("video_category like", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryNotLike(String value) {
            addCriterion("video_category not like", value, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryIn(List<String> values) {
            addCriterion("video_category in", values, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryNotIn(List<String> values) {
            addCriterion("video_category not in", values, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryBetween(String value1, String value2) {
            addCriterion("video_category between", value1, value2, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andVideoCategoryNotBetween(String value1, String value2) {
            addCriterion("video_category not between", value1, value2, "videoCategory");
            return (Criteria) this;
        }

        public Criteria andResolutionIsNull() {
            addCriterion("resolution is null");
            return (Criteria) this;
        }

        public Criteria andResolutionIsNotNull() {
            addCriterion("resolution is not null");
            return (Criteria) this;
        }

        public Criteria andResolutionEqualTo(String value) {
            addCriterion("resolution =", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotEqualTo(String value) {
            addCriterion("resolution <>", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionGreaterThan(String value) {
            addCriterion("resolution >", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionGreaterThanOrEqualTo(String value) {
            addCriterion("resolution >=", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLessThan(String value) {
            addCriterion("resolution <", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLessThanOrEqualTo(String value) {
            addCriterion("resolution <=", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLike(String value) {
            addCriterion("resolution like", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotLike(String value) {
            addCriterion("resolution not like", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionIn(List<String> values) {
            addCriterion("resolution in", values, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotIn(List<String> values) {
            addCriterion("resolution not in", values, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionBetween(String value1, String value2) {
            addCriterion("resolution between", value1, value2, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotBetween(String value1, String value2) {
            addCriterion("resolution not between", value1, value2, "resolution");
            return (Criteria) this;
        }

        public Criteria andBitrateIsNull() {
            addCriterion("bitrate is null");
            return (Criteria) this;
        }

        public Criteria andBitrateIsNotNull() {
            addCriterion("bitrate is not null");
            return (Criteria) this;
        }

        public Criteria andBitrateEqualTo(Integer value) {
            addCriterion("bitrate =", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateNotEqualTo(Integer value) {
            addCriterion("bitrate <>", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateGreaterThan(Integer value) {
            addCriterion("bitrate >", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateGreaterThanOrEqualTo(Integer value) {
            addCriterion("bitrate >=", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateLessThan(Integer value) {
            addCriterion("bitrate <", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateLessThanOrEqualTo(Integer value) {
            addCriterion("bitrate <=", value, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateIn(List<Integer> values) {
            addCriterion("bitrate in", values, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateNotIn(List<Integer> values) {
            addCriterion("bitrate not in", values, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateBetween(Integer value1, Integer value2) {
            addCriterion("bitrate between", value1, value2, "bitrate");
            return (Criteria) this;
        }

        public Criteria andBitrateNotBetween(Integer value1, Integer value2) {
            addCriterion("bitrate not between", value1, value2, "bitrate");
            return (Criteria) this;
        }

        public Criteria andCanRotateIsNull() {
            addCriterion("can_rotate is null");
            return (Criteria) this;
        }

        public Criteria andCanRotateIsNotNull() {
            addCriterion("can_rotate is not null");
            return (Criteria) this;
        }

        public Criteria andCanRotateEqualTo(Boolean value) {
            addCriterion("can_rotate =", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateNotEqualTo(Boolean value) {
            addCriterion("can_rotate <>", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateGreaterThan(Boolean value) {
            addCriterion("can_rotate >", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateGreaterThanOrEqualTo(Boolean value) {
            addCriterion("can_rotate >=", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateLessThan(Boolean value) {
            addCriterion("can_rotate <", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateLessThanOrEqualTo(Boolean value) {
            addCriterion("can_rotate <=", value, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateIn(List<Boolean> values) {
            addCriterion("can_rotate in", values, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateNotIn(List<Boolean> values) {
            addCriterion("can_rotate not in", values, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateBetween(Boolean value1, Boolean value2) {
            addCriterion("can_rotate between", value1, value2, "canRotate");
            return (Criteria) this;
        }

        public Criteria andCanRotateNotBetween(Boolean value1, Boolean value2) {
            addCriterion("can_rotate not between", value1, value2, "canRotate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}